using System;
using System.Data;

using Geekees.App.Cashbook.Lib.Entity;
using Geekees.App.Cashbook.Lib.DAL;
using Geekees.App.Cashbook.Lib.Helper;

namespace Geekees.App.Cashbook.Lib.BLL
{
	/// <summary>
	/// Summary description for BLClassification.
	/// </summary>
	public class BLClassification
	{
		public BLClassification()
		{
			
		}
		
		public static DataTable GetAllClassification()
		{
			User u = LoginManager.GetCurrentUser();
			return DAClassification.GetAllClassification(u.Id);
		}

		public static int AddClassification( string cName )
		{
			User u = LoginManager.GetCurrentUser();
			return DAClassification.AddClassification( cName, u.Id );
		}

		public static bool UpdateClassification( int cId, string cName )
		{
			User u = LoginManager.GetCurrentUser();
			return DAClassification.UpdateClassification( cId, cName, u.Id );
		}
		public static bool DeleteClassification( int cId )
		{
			User u = LoginManager.GetCurrentUser();
			return DAClassification.DeleteClassification( cId, u.Id );
		}
	}
}
